<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
</head>
<script src="/jquery/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="/layui/css/layui.css">
<link rel="stylesheet" href="/css/advertisement/advertisement_list_update.css">
<script src="/layui/layui.js"></script>
<style>

</style>
<body>
<div class="bodyBox">
    <div class="layui-row">
        <div class="layui-col-md11">
            <div class="layui-card headerCenter">
                <div class="layui-card-header backColor">
                    修改轮播图
                    <div class="btnRight" style="margin-bottom: 10px">
                        <button onclick="backOff()" type="button" class="layui-btn layui-btn layui-btn-sm">
                            <i class="layui-icon layui-icon-return"></i>
                            返回
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="box">
        <form class="layui-form" action="" id="upAdver">
            <div class="layui-form-item">
                <label class="layui-form-label">轮播图名称：</label>
                <div class="layui-input-inline">
                    <input type="text" name="imgTitle" id="imgTitle" placeholder="" autocomplete="off" class="layui-input" cols="30" rows="10" style="resize: none;">
                </div>
            </div>
            <input type="text" name="categoryId" class="layui-input hide">
            <div class="layui-form-item">
                <label class="layui-form-label fontsize">轮播图类型：</label>
                <div class="layui-input-inline fontsize inp" >
                    <select id="imgType" name="imgType" lay-verify="required" class="inp" lay-filter="filter2">
                        <option value="0">请选择轮播图类型</option>
                        <option value="1">视频</option>
                        <option value="2">商品</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">开始时间：</label>
                <div class="layui-input-inline">
                    <input type="text" name="startDate" class="layui-input" placeholder="yyyy-MM-dd HH:mm:ss" id="startDate">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">结束时间：</label>
                <div class="layui-input-inline">
                    <input type="text" name="expireDate" class="layui-input" placeholder="yyyy-MM-dd HH:mm:ss" id="expireDate">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">上线/下线：</label>
                <div class="layui-input-block">
                    <input type="radio" lay-filter="recommend"  name="recom" value="2" title="上线" checked>
                    <input type="radio" lay-filter="recommend" name="recom" value="3" title="下线">
                    <input type="hidden" value="2" id="recommend" name="recommend"/>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-upload">
                    <label class="layui-form-label">图片：</label>
                    <button type="button"  class="layui-btn" id="test1">上传图片</button>
                    <input type="hidden" name="mainImage"/>
                    <div class="uploadHeadImage" id="showBtn" style="margin-left: 120px;margin-top: 10px;width: 100px;height: 100px;">
                        <img src='' style='width: 100%;height: 100%;display: none;'>
                    </div>
                    <input type="text" id="img_address" name="imgUrls" style="display: none;" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <textarea id="remarks" name="remarks" placeholder="请输入内容" class="layui-textarea" style="resize: none;"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" id="sub" lay-submit lay-filter="formDemo">提交</button>
                </div>
            </div>
            <input type="hidden" id="carouselId" name="carouselId"/>
        </form>
    </div>
</div>
<script src="/js/advertisement/advertisement_list_update.js"></script>
</body>
</html>